* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #ffffff;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-container {
  flex-shrink: 0;
  z-index: 1001;
}

.logo {
  height: 50px;
  width: auto;
}

.nav-container {
  position: relative;
}

.nav-container nav ul {
  list-style-type: none;
  display: flex;
  gap: 20px;
}

.nav-container nav ul li a {
  color: black;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
  padding: 5px 10px;
}

.nav-container nav ul li a:hover {
  color: #025d0b;
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 24px;
  z-index: 1001;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-container {
    position: absolute;
    top: 100%;
    right: 10px;
    width: 250px;
    background-color: #ffffff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    opacity: 0;
    z-index: 999;
  }

  .nav-container.active {
    max-height: 500px;
    opacity: 1;
  }

  .nav-container nav ul {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    padding: 20px;
  }

  .nav-container nav ul li {
    width: 100%;
    text-align: right;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  .nav-container nav ul li:last-child {
    border-bottom: none;
  }

  .nav-container nav ul li a {
    color: #333;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .nav-container nav ul li a:hover {
    background-color: #e0f2f1;
    color: #025d0b;
  }
}

main {
  position: relative;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

main h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  text-align: center;
  color: #1a3e72;
  margin-bottom: 10px;
}

.opis-naslov {
  text-align: center;
  font-style: italic;
  font-size: clamp(16px, 2vw, 20px);
  color: #4a6fa5;
  margin-bottom: 40px;
}

.galerija-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.galerija-grid img {
  width: calc(33.333% - 13.33px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

@media (max-width: 900px) {
  .galerija-grid img {
    width: calc(50% - 10px);
  }
}

@media (max-width: 600px) {
  .galerija-grid img {
    width: 100%;
  }
}

.galerija-grid img:hover {
  transform: scale(1.03);
}

.lightbox {
  position: fixed;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}


footer {
    background-color: #f2f9ff;
    color: #333;
    padding: 40px 20px 20px;
    font-family: Arial, sans-serif;
    border-top: 2px solid #0288d1;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.footer-left, .footer-middle, .footer-right, .footer-sestrinska {
    flex: 1;
    min-width: 250px;
}

.footer-left h3 {
    color: #025d0b;
    margin-bottom: 10px;
}

.footer-middle h4,
.footer-right h4,
.footer-sestrinska h4 {
    margin-bottom: 12px;
    color: #0288d1;
}

.footer-middle ul {
    list-style: none;
    padding: 0;
}

.footer-middle ul li {
    margin-bottom: 8px;
}

.footer-middle ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-middle ul li a:hover {
    color: #025d0b;
}

.footer-sestrinska a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-sestrinska a:hover {
    color: #025d0b;
}

.footer-sestrinska p {
    margin: 5px 0;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: #777;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left, .footer-middle, .footer-right, .footer-sestrinska {
        margin-bottom: 20px;
    }
}
